<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        border: solid 2px;
        padding: 10px;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <input type="text" @keyup.ka="say" />
    </div>
    <script src="./vue.js"></script>
    <script>
      Vue.config.keyCodes.ka = 65;
      new Vue({
        el: "#app",
        data: {},
        methods: {
          say(e) {
            console.log("...", e.keyCode);
          },
        },
      });
    </script>
  </body>
</html>
